package com.lei.yohuo001java.adapter;

import com.flyco.tablayout.listener.CustomTabEntity;

/**
 * @ProjectName : YoHuo001Java
 * @Author : 雷金泷
 * @Time : 2020/12/16 19:38
 * @Description : 文件描述
 */
public class CommonAdapter implements CustomTabEntity {
    private String title;
    private int select;
    private int unselect;

    public CommonAdapter(String title, int select, int unselect) {
        this.title = title;
        this.select = select;
        this.unselect = unselect;
    }

    @Override
    public String getTabTitle() {
        return title;
    }

    @Override
    public int getTabSelectedIcon() {
        return select;
    }

    @Override
    public int getTabUnselectedIcon() {
        return unselect;
    }
}
